package org.ielts.domain.log;

import java.util.Date;

import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.ManyToOne;

import org.ielts.domain.base.SignCourse;

@Entity
@DiscriminatorValue("FreezeCourse")
public class FreezeCourseLog extends SchoolLog {
	public FreezeCourseLog() {
		setLogType("FreezeCourse");
	}

	private Date endDate;

	@Override
	public String getLogType() {
		return "FreezeCourse";
	}

	@ManyToOne(fetch = FetchType.EAGER)
	private SignCourse signCourse;

	public SignCourse getSignCourse() {
		return signCourse;
	}

	public void setSignCourse(SignCourse signCourse) {
		this.signCourse = signCourse;
	}

	public Date getResumeDate() {
		return resumeDate;
	}

	public void setResumeDate(Date resumeDate) {
		this.resumeDate = resumeDate;
	}

	public Date getEndDate() {
		return endDate;
	}

	public void setEndDate(Date endDate) {
		this.endDate = endDate;
	}

	private Date resumeDate;
}
